import tkinter as tk
from buy_items import BuyItemsController
from start_wow_client import StartWowClientController
from baku_pet import BakuPetController
from keydown_bat import KeydownBatController
from auto_craft import AutoCraftController
from bind_keyboard_events import BindKeyboardEventsController



class TkController:
  def __init__(self) -> None:
     pass
  
  def bootstrap(self):
    root = tk.Tk()
    root.title('Wow助手')
    root.geometry('500x300')
    root.resizable(False, False)
    self.bootstrap_modules(root)
    root.mainloop()
    
  
  def bootstrap_modules(self, tk_root):
     BuyItemsController(tk_root)
    #  StartWowClientController(tk_root)
     BakuPetController(tk_root)
     KeydownBatController(tk_root)
     AutoCraftController(tk_root)
     BindKeyboardEventsController(tk_root)

def main():
    ctl = TkController()
    ctl.bootstrap()

# main()
# pip install -r requirements.txt
# pyinstaller -w --hidden-import=comtypes.stream app.py

if __name__ == '__main__':
    main()